package com.yu.mall.entity;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * post_sales
 * @author 
 */
public class PostSales implements Serializable {
    private Integer id;

    /**
     * 微信openid
     */
    private String openid;

    /**
     * 订单编号
     */
    private String orderNo;

    /**
     * 京东订单编号
     */
    private String jdOrderId;

    /**
     * 售后申请号
     */
    private String thirdApplyId;

    /**
     * 京东商品编号
     */
    private String skuId;

    /**
     * 商品数量
     */
    private Integer num;

    /**
     * 京东商品价格
     */
    private BigDecimal jdPrice;

    /**
     * 商品名称
     */
    private String name;

    /**
     * 商品主图
     */
    private String imagePath;

    /**
     * 商品品牌
     */
    private String brand;

    /**
     * sku名称
     */
    private String skuName;

    /**
     * 售后类型
     */
    private String customerExpect;

    /**
     * 取件方式
     */
    private String pickupWareType;

    /**
     * 取件地址id
     */
    private String qjAddressId;

    /**
     * 问题描述
     */
    private String questionDesc;

    /**
     * 状态,1:进行中,2:已完成,3:已取消
     */
    private String status;

    /**
     * 申请状态,10:申请,20:审核,30:收货,40:处理,50:待用户确认,60:完成,70:取消
     */
    private String applyStep;

    /**
     * 是否需要填写第三方物流信息
     */
    private Boolean isNeedOtherLogistics;

    /**
     * 是否已填写第三方物流信息
     */
    private Boolean isSubmitOtherLogistics;

    /**
     * 创建时间
     */
    private Date createDatetime;

    /**
     * 修改时间
     */
    private Date updateDatetime;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getOpenid() {
        return openid;
    }

    public void setOpenid(String openid) {
        this.openid = openid;
    }

    public String getOrderNo() {
        return orderNo;
    }

    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo;
    }

    public String getJdOrderId() {
        return jdOrderId;
    }

    public void setJdOrderId(String jdOrderId) {
        this.jdOrderId = jdOrderId;
    }

    public String getThirdApplyId() {
        return thirdApplyId;
    }

    public void setThirdApplyId(String thirdApplyId) {
        this.thirdApplyId = thirdApplyId;
    }

    public String getSkuId() {
        return skuId;
    }

    public void setSkuId(String skuId) {
        this.skuId = skuId;
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    public BigDecimal getJdPrice() {
        return jdPrice;
    }

    public void setJdPrice(BigDecimal jdPrice) {
        this.jdPrice = jdPrice;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getImagePath() {
        return imagePath;
    }

    public void setImagePath(String imagePath) {
        this.imagePath = imagePath;
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public String getSkuName() {
        return skuName;
    }

    public void setSkuName(String skuName) {
        this.skuName = skuName;
    }

    public String getCustomerExpect() {
        return customerExpect;
    }

    public void setCustomerExpect(String customerExpect) {
        this.customerExpect = customerExpect;
    }

    public String getPickupWareType() {
        return pickupWareType;
    }

    public void setPickupWareType(String pickupWareType) {
        this.pickupWareType = pickupWareType;
    }

    public String getQjAddressId() {
        return qjAddressId;
    }

    public void setQjAddressId(String qjAddressId) {
        this.qjAddressId = qjAddressId;
    }

    public String getQuestionDesc() {
        return questionDesc;
    }

    public void setQuestionDesc(String questionDesc) {
        this.questionDesc = questionDesc;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getApplyStep() {
        return applyStep;
    }

    public void setApplyStep(String applyStep) {
        this.applyStep = applyStep;
    }

    public Boolean getIsNeedOtherLogistics() {
        return isNeedOtherLogistics;
    }

    public void setIsNeedOtherLogistics(Boolean isNeedOtherLogistics) {
        this.isNeedOtherLogistics = isNeedOtherLogistics;
    }

    public Boolean getIsSubmitOtherLogistics() {
        return isSubmitOtherLogistics;
    }

    public void setIsSubmitOtherLogistics(Boolean isSubmitOtherLogistics) {
        this.isSubmitOtherLogistics = isSubmitOtherLogistics;
    }

    public Date getCreateDatetime() {
        return createDatetime;
    }

    public void setCreateDatetime(Date createDatetime) {
        this.createDatetime = createDatetime;
    }

    public Date getUpdateDatetime() {
        return updateDatetime;
    }

    public void setUpdateDatetime(Date updateDatetime) {
        this.updateDatetime = updateDatetime;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        PostSales other = (PostSales) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getOpenid() == null ? other.getOpenid() == null : this.getOpenid().equals(other.getOpenid()))
            && (this.getOrderNo() == null ? other.getOrderNo() == null : this.getOrderNo().equals(other.getOrderNo()))
            && (this.getJdOrderId() == null ? other.getJdOrderId() == null : this.getJdOrderId().equals(other.getJdOrderId()))
            && (this.getThirdApplyId() == null ? other.getThirdApplyId() == null : this.getThirdApplyId().equals(other.getThirdApplyId()))
            && (this.getSkuId() == null ? other.getSkuId() == null : this.getSkuId().equals(other.getSkuId()))
            && (this.getNum() == null ? other.getNum() == null : this.getNum().equals(other.getNum()))
            && (this.getJdPrice() == null ? other.getJdPrice() == null : this.getJdPrice().equals(other.getJdPrice()))
            && (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))
            && (this.getImagePath() == null ? other.getImagePath() == null : this.getImagePath().equals(other.getImagePath()))
            && (this.getBrand() == null ? other.getBrand() == null : this.getBrand().equals(other.getBrand()))
            && (this.getSkuName() == null ? other.getSkuName() == null : this.getSkuName().equals(other.getSkuName()))
            && (this.getCustomerExpect() == null ? other.getCustomerExpect() == null : this.getCustomerExpect().equals(other.getCustomerExpect()))
            && (this.getPickupWareType() == null ? other.getPickupWareType() == null : this.getPickupWareType().equals(other.getPickupWareType()))
            && (this.getQjAddressId() == null ? other.getQjAddressId() == null : this.getQjAddressId().equals(other.getQjAddressId()))
            && (this.getQuestionDesc() == null ? other.getQuestionDesc() == null : this.getQuestionDesc().equals(other.getQuestionDesc()))
            && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
            && (this.getApplyStep() == null ? other.getApplyStep() == null : this.getApplyStep().equals(other.getApplyStep()))
            && (this.getIsNeedOtherLogistics() == null ? other.getIsNeedOtherLogistics() == null : this.getIsNeedOtherLogistics().equals(other.getIsNeedOtherLogistics()))
            && (this.getIsSubmitOtherLogistics() == null ? other.getIsSubmitOtherLogistics() == null : this.getIsSubmitOtherLogistics().equals(other.getIsSubmitOtherLogistics()))
            && (this.getCreateDatetime() == null ? other.getCreateDatetime() == null : this.getCreateDatetime().equals(other.getCreateDatetime()))
            && (this.getUpdateDatetime() == null ? other.getUpdateDatetime() == null : this.getUpdateDatetime().equals(other.getUpdateDatetime()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getOpenid() == null) ? 0 : getOpenid().hashCode());
        result = prime * result + ((getOrderNo() == null) ? 0 : getOrderNo().hashCode());
        result = prime * result + ((getJdOrderId() == null) ? 0 : getJdOrderId().hashCode());
        result = prime * result + ((getThirdApplyId() == null) ? 0 : getThirdApplyId().hashCode());
        result = prime * result + ((getSkuId() == null) ? 0 : getSkuId().hashCode());
        result = prime * result + ((getNum() == null) ? 0 : getNum().hashCode());
        result = prime * result + ((getJdPrice() == null) ? 0 : getJdPrice().hashCode());
        result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
        result = prime * result + ((getImagePath() == null) ? 0 : getImagePath().hashCode());
        result = prime * result + ((getBrand() == null) ? 0 : getBrand().hashCode());
        result = prime * result + ((getSkuName() == null) ? 0 : getSkuName().hashCode());
        result = prime * result + ((getCustomerExpect() == null) ? 0 : getCustomerExpect().hashCode());
        result = prime * result + ((getPickupWareType() == null) ? 0 : getPickupWareType().hashCode());
        result = prime * result + ((getQjAddressId() == null) ? 0 : getQjAddressId().hashCode());
        result = prime * result + ((getQuestionDesc() == null) ? 0 : getQuestionDesc().hashCode());
        result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
        result = prime * result + ((getApplyStep() == null) ? 0 : getApplyStep().hashCode());
        result = prime * result + ((getIsNeedOtherLogistics() == null) ? 0 : getIsNeedOtherLogistics().hashCode());
        result = prime * result + ((getIsSubmitOtherLogistics() == null) ? 0 : getIsSubmitOtherLogistics().hashCode());
        result = prime * result + ((getCreateDatetime() == null) ? 0 : getCreateDatetime().hashCode());
        result = prime * result + ((getUpdateDatetime() == null) ? 0 : getUpdateDatetime().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", openid=").append(openid);
        sb.append(", orderNo=").append(orderNo);
        sb.append(", jdOrderId=").append(jdOrderId);
        sb.append(", thirdApplyId=").append(thirdApplyId);
        sb.append(", skuId=").append(skuId);
        sb.append(", num=").append(num);
        sb.append(", jdPrice=").append(jdPrice);
        sb.append(", name=").append(name);
        sb.append(", imagePath=").append(imagePath);
        sb.append(", brand=").append(brand);
        sb.append(", skuName=").append(skuName);
        sb.append(", customerExpect=").append(customerExpect);
        sb.append(", pickupWareType=").append(pickupWareType);
        sb.append(", qjAddressId=").append(qjAddressId);
        sb.append(", questionDesc=").append(questionDesc);
        sb.append(", status=").append(status);
        sb.append(", applyStep=").append(applyStep);
        sb.append(", isNeedOtherLogistics=").append(isNeedOtherLogistics);
        sb.append(", isSubmitOtherLogistics=").append(isSubmitOtherLogistics);
        sb.append(", createDatetime=").append(createDatetime);
        sb.append(", updateDatetime=").append(updateDatetime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}